// 引入 request 文件
import request from '@/utils/request'
 
// 查询应用菜单列表
export function listAppMenu(query) {
  return request({
    url: 'app/appMenu/listAppMenu',
    method: 'get',
    data: query
  })
}


// 表单数据 list 数据
export function appFormDataList(formId, data) {
  return request({
    url: '/from/flow/from/' + formId + '/pageQuery',
    method: 'post',
    data: data
  })
}

// 表单数据 新增
export function appFormDataAdd(formId, data) {
  return request({
    url: '/from/flow/from/' + formId + '/add',
    method: 'post',
    data: data
  })
}

// 表单数据 修改
export function appFormDataEdit(formId, data) {
  return request({
    url: '/from/flow/from/' + formId + '/edit',
    method: 'put',
    data: data
  })
}

// 表单数据 删除 可批量
export function appFormDataDel(formId, ids) {
  return request({
    url: '/from/flow/from/' + formId + '/' + ids,
    method: 'delete'
  })
}